//
//  YSMeBtn.m
//  YouSheng
//
//  Created by Mac on 16/8/25.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import "YSMeBtn.h"

@implementation YSMeBtn

- (void)layoutSubviews {
    [super layoutSubviews];
    NSInteger imgX = 0;
    NSInteger imgY = 0;
    NSInteger imgW = 40;
    NSInteger labW = 100;
    NSInteger imgH = 40;
    self.imageView.frame = CGRectMake(imgX, imgY, imgW, imgH);
//    self.imageView.backgroundColor = [UIColor redColor];
    self.titleLabel.frame = CGRectMake(imgW + 5, imgY, labW, imgH);
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    }
    return self;
}

@end
